#include "cpu/exec/template-start.h"

#define make_jcc_helper(cc) \
    make_helper(concat4(j, cc, _, SUFFIX)){ \
        int len = concat(decode_si_, SUFFIX)(eip + 1); \
        cpu.eip += (concat(check_cc_, cc)() ? op_src->val : 0);\
        print_asm_template1(); \
        return len + 1; \
    }

make_jcc_helper(e)
make_jcc_helper(be)
make_jcc_helper(le)
make_jcc_helper(l)
make_jcc_helper(g)
make_jcc_helper(ne)
make_jcc_helper(ge)
make_jcc_helper(a)
make_jcc_helper(ns)
make_jcc_helper(s)

#include "cpu/exec/template-end.h"